package com.self.campussecondhandmarket.service;

import com.self.campussecondhandmarket.entity.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.self.campussecondhandmarket.entity.request.goods.*;
import com.self.campussecondhandmarket.entity.response.goods.GoodsResp;
import com.self.campussecondhandmarket.entity.response.goods.DetailResp;
import com.self.campussecondhandmarket.resp.Result;

import java.util.List;

/**
 * @author 31465
 * @description 针对表【tb_goods(商品表)】的数据库操作Service
 * @createDate 2024-04-12 09:48:38
 */
public interface GoodsService extends IService<Goods> {
	
	Result<String> addGoodsInformation(GoodsAddReq dto);
	
	List<GoodsResp> getAllGoods(GoodsAll dto);
	
	
	DetailResp getGoodsById(Integer goodsId);
	
	void changeInventory(Inventory dto);
	
	void removeWithAction(Action dto);
	
	Result getNewGoods(NewGoods dto);
	
	Result<String> addGoodsInformation(AdminGoodsAdd dto);
}
